package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 勋章对象 medals
 * 
 * @author ruoyi
 * @date 2025-04-25
 */
public class Medal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 勋章ID */
    private Long id;

    /** 勋章名称 */
    @Excel(name = "勋章名称")
    private String medalName;

    /** 所需积分 */
    @Excel(name = "所需积分")
    private Long pointsRequired;

    /** 勋章描述 */
    @Excel(name = "勋章描述")
    private String description;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 勋章图片路径 */
    @Excel(name = "勋章图片路径")
    private String medalImage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMedalName(String medalName) 
    {
        this.medalName = medalName;
    }

    public String getMedalName() 
    {
        return medalName;
    }

    public void setPointsRequired(Long pointsRequired) 
    {
        this.pointsRequired = pointsRequired;
    }

    public Long getPointsRequired() 
    {
        return pointsRequired;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    public void setMedalImage(String medalImage) 
    {
        this.medalImage = medalImage;
    }

    public String getMedalImage() 
    {
        return medalImage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("medalName", getMedalName())
            .append("pointsRequired", getPointsRequired())
            .append("description", getDescription())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("medalImage", getMedalImage())
            .toString();
    }
}
